package com.zbf.api;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/6/19  11:43
 * 描述:
 */
@Component
public class MyFallBackFactory implements FallbackFactory<TestFeginApiImpl> {

    public TestFeginApiImpl create(Throwable throwable) {
        return new TestFeginApiImpl(throwable);
    }
}
